1bashThis demonstrates using the netstat command to list all listening ports on the system for network troubleshooting.netstat --listeningexternal toolsnetstatnetwork monitoringlist listening ports